package com.example.asproject1801_1;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.example.asproject1801_1.async01.VideoListActivity;
import com.example.asproject1801_1.async02.ShowVideoActivity;
import com.example.asproject1801_1.interstorage.LoginActivity;
import com.example.asproject1801_1.requestpermisson.CallActivity;
import com.example.asproject1801_1.requestpermisson.CallActivity2;

public class HomeActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);
    }
        public void onClick(View view) {
            Intent intent = new Intent();
            switch (view.getId()) {
                case R.id.btn1:
                    intent.setClass(this,MainActivity.class);
                    break;
                case R.id.btn2:
                    intent.setClass(this, VideoListActivity.class);
                    break;
                case R.id.btn3:
                    intent.setClass(this, ShowVideoActivity.class);
                    break;
                case R.id.btn4:
                    intent.setClass(this, CallActivity.class);
                    break;

                case R.id.btn5:
                    intent.setClass(this, LoginActivity.class);
                    break;
            }
            startActivity(intent);
        }
    }

